<?php

$array1=array(
  array (
    "ServiceEvent"=>
    array(
      "EventCode"=>"HUB",
      "Description"=> "HUB"
    ),
    "Date"=>"2019-02-12",
    "Time"=>"15:46:36",
    "timezone"=>"China"
  )
);

$array2=
array (
  array(
    "Date"=> "2019-02-18",
    "Time"=> "13:10:50",
    "ServiceEvent"=>
    array(
      "EventCode"=>"PU",
      "Description"=>"Shipment picked up"
    ),
    
    "ServiceArea"=>
    array(
      "ServiceAreaCode"=>"JBL",
      "Description"=>"JUBAIL-SAU"
    )
  ),
  array(
    "Date"=> "2019-02-18",
    "Time"=> "13:10:50",
    "ServiceEvent"=>
    array(
      "EventCode"=>"PU",
      "Description"=>"Shipment picked up"
    ),
    
    "ServiceArea"=>
    array(
      "ServiceAreaCode"=>"JBL",
      "Description"=>"JUBAIL-SAU"
    )
  )
  );

  $array2[]=$array1;
  echo "<pre>";
  var_dump($array2);
   echo "</pre>";


   /*
array(3) {
  [0]=>
  array(4) {
    ["Date"]=>
    string(10) "2019-02-18"
    ["Time"]=>
    string(8) "13:10:50"
    ["ServiceEvent"]=>
    array(2) {
      ["EventCode"]=>
      string(2) "PU"
      ["Description"]=>
      string(18) "Shipment picked up"
    }
    ["ServiceArea"]=>
    array(2) {
      ["ServiceAreaCode"]=>
      string(3) "JBL"
      ["Description"]=>
      string(10) "JUBAIL-SAU"
    }
  }
  [1]=>
  array(4) {
    ["Date"]=>
    string(10) "2019-02-18"
    ["Time"]=>
    string(8) "13:10:50"
    ["ServiceEvent"]=>
    array(2) {
      ["EventCode"]=>
      string(2) "PU"
      ["Description"]=>
      string(18) "Shipment picked up"
    }
    ["ServiceArea"]=>
    array(2) {
      ["ServiceAreaCode"]=>
      string(3) "JBL"
      ["Description"]=>
      string(10) "JUBAIL-SAU"
    }
  }
  //是两个合在一起的独立在一块上面是二维数组合并起来也是
  [2]=>
  array(1) {
    [0]=>
    array(4) {
      ["ServiceEvent"]=>
      array(2) {
        ["EventCode"]=>
        string(3) "HUB"
        ["Description"]=>
        string(3) "HUB"
      }
      ["Date"]=>
      string(10) "2019-02-12"
      ["Time"]=>
      string(8) "15:46:36"
      ["timezone"]=>
      string(5) "China"
    }
  }
}
   */
?>